package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PathController {
    //完全匹配
    @RequestMapping("/aa/test01")
    public String test01(){
        System.out.println("test01...");
        return "success";
    }
    //目录匹配
    @RequestMapping("/bb/*")
    public String test02(){
        System.out.println("test02...");
        return "success2";
    }
    //后缀名匹配
    @RequestMapping("/*.do")
    public String test03(){
        System.out.println("test03...");
        return "success3";
    }
}
